class HotWordModel {
// {
//     "errorCode": 0,
//     "errorMsg": ""
// }

  final List<HotWord>? data;
  final num? errorCode;
  final String? errorMsg;

  HotWordModel({
    this.data,
    this.errorCode,
    this.errorMsg,
  });

  factory HotWordModel.fromJson(Map<String, dynamic> json) {
    return HotWordModel(
      data: json['data'] == null ? null : List<HotWord>.from(
          json['data'].map((x) => HotWord.fromJson(x))),
      errorCode: json['errorCode'],
      errorMsg: json['errorMsg'],
    );
  }

  Map<String, dynamic> toJson() =>
      {
        'data': data?.map((e) => e.toJson()).toList(),
        'errorCode': errorCode,
        'errorMsg': errorMsg,
      };
}

class HotWord {
// {
//     "id": 6,
//     "link": "",
//     "name": "面试",
//     "order": 1,
//     "visible": 1
// }

  final num? id;
  final String? link;
  final String? name;
  final num? order;
  final num? visible;

  HotWord({
    this.id,
    this.link,
    this.name,
    this.order,
    this.visible,
  });

  factory HotWord.fromJson(Map<String, dynamic> json) {
    return HotWord(
      id: json['id'],
      link: json['link'],
      name: json['name'],
      order: json['order'],
      visible: json['visible'],
    );
  }

  Map<String, dynamic> toJson() =>
      {
        'id': id,
        'link': link,
        'name': name,
        'order': order,
        'visible': visible,
      };
}